[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 delay()                 Suspends Program Execution for Specified Time

 #include   <dos.h>

 void       delay(millsec);
 unsigned millsec;

    delay() suspends program execution for 'millsec' milliseconds.

       Returns:     Nothing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------

    The following statements delay program execution before clearing the
    screen and drawing a larger circle.

           #include <graphics.h>

           main()
           {
               int gdriver = DETECT;
               int gmode, x;

               initgraph(&gdriver,&gmode,"");
               for (x = 0; x < 100; x+=2) {
                   circle(320,100,x);
                   delay(500);
                   cleardevice();
               }
               closegraph();
           }


See Also: sleep() sound()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson